Jump to content

Xiaomi Mi 4c (xiaomi-libra)

From postmarketOS Wiki
Xiaomi Mi 4c
Mi 4c running weston
Mi 4c running weston
Manufacturer Xiaomi
Name Mi 4c
Codename xiaomi-libra
Released 2015
Type handset
Hardware
Chipset Qualcomm Snapdragon 808 (MSM8992)
CPU 4x1.4 GHz Cortex-A53
2x1.8 GHz Cortex-A57
GPU Adreno 418
Display 1080x1920 IPS
Storage 16/32 GB
Memory 2/3 GB
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
Android (MIUI) 5.1.1
Extended version
The most recent supported version from the manufacturer.
Android (MIUI)
postmarketOS
Category downstream
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
no
pmOS kernel
The kernel version that runs on the device's port.
3.10.107
Unixbench score
Unixbench Whetstone/Dhrystone score. See Unixbench.
1926.2
Device package device-xiaomi-libra
Kernel package linux-xiaomi-libra
Features
Flashing
It is possible to flash the device with pmbootstrap flasher.
Works
USB Networking
After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system).
Works
Battery
Charging and battery level reporting works
Works
Screen
Display works. Ideally with sleep mode and brightness control.
Works
Touchscreen
Works
Multimedia
3D Acceleration
Untested
Audio
Audio playback, microphone, headset and buttons.
Untested
Camera
Untested
Connectivity
WiFi
Works
Bluetooth
Untested
GPS
Untested
Modem
Calls
Untested
SMS
Untested
Mobile data
Untested
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Untested
USB OTG
USB On-The-Go or USB-C Role switching
Untested
Sensors
Accelerometer
Auto screen rotation works in desktops e.g. Phosh or Plasma Mobile
Untested
Mi 4c running gnome 3

Contributors

  • aostanin

Maintainer(s)

Users owning this device

  • Hastalavista (Notes: PMOS edge w/ downstream kernel, broken touchscreen, WiFi not working, wonky PMIC)
  • Netman (Notes: No battery)
  • Russanandres (Notes: MIUI v8)
  • TukangM (Notes: 3/32, second phone, touchscreen cracked, dead battery, still working if i had to fix it)


Issues

  • (Gnome) Password request dialog covers OnBoard input
Demo of issue with Onboard

How to enter flash mode

Recovery mode

  • Turn the device off (or restart also works)
  • Hold Volume Up and Power button
  • Once you feel vibration and phone turns on, release Power button
  • Keep holding Volume Up until you get to recovery.

Flashing (Download, Fastboot) mode

  • Same as recovery, but this time hold the Volume Down and Power keys.

Installation

  • Install pmbootstrap first on your PC
  • zap & reinit pmbootstrap (pmbootstrap -y zap ; pmbootstrap init), choose xiaomi-ferrari as a device
  • proceed with installation as usual: reboot device to fastboot mode, then:
pmbootstrap install
pmbootstrap flasher flash_kernel
pmbootstrap flasher flash_rootfs

Mainline kernel

There is a close-to-mainline kernel fork featuring USB, screen via simplefb and basic core bringup. Find it here.


See also